package com.yanqu.road.entity.enums.activity.dafuweng;

/**
 * @Author wpj
 * @Date 2020/10/3
 */
public enum eDaFuWengBuildingType {
    YuanLin("园林", 10001),
    RanFang("染坊", 10002),
    XiangLiaoFang("香料坊", 10003),
    YueFang("乐坊", 10004),
    TieJiangPu("铁匠铺", 10005),
    ShenMiJiGuan1("神秘机关1", 10006),
    ShenMiJiGuan2("神秘机关2", 10007),
    ChaSi("茶肆", 10008),
    DangPu("当铺", 10009),
    DuFang("赌坊", 10010),
    ZaHuoPu("杂货摊", 10011),
    MinFang("民房", 10012),
    YiZhan("驿站", 10013),
    SiMiao("寺庙", 10014),
    SuanGuaTan("算卦摊", 10015),
    HuaFang("画坊", 10016),
    ;

    private String name;

    private int intValue;

    eDaFuWengBuildingType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public static eDaFuWengBuildingType forValue(int buildingId) {
        for (eDaFuWengBuildingType type : values()) {
            if (type.getValue() == buildingId) {
                return type;
            }
        }
        return null;
     }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }
}
